import * as echarts from 'echarts/core'
import { BrushComponent, DataZoomComponent, DatasetComponent, GridComponent, LegendComponent, TitleComponent, ToolboxComponent, TooltipComponent, VisualMapComponent } from 'echarts/components'
import { CanvasRenderer } from 'echarts/renderers'
import { BarChart, CandlestickChart, HeatmapChart, LineChart, ParallelChart, ScatterChart } from 'echarts/charts'
import { UniversalTransition } from 'echarts/features'
import { Scatter3DChart } from 'echarts-gl/charts'
import { Grid3DComponent } from 'echarts-gl/components'

echarts.use([
  DatasetComponent,
  TitleComponent,
  ToolboxComponent,
  TooltipComponent,
  VisualMapComponent,
  DataZoomComponent,
  LegendComponent,
  GridComponent,
  LineChart,
  ParallelChart,
  CanvasRenderer,
  Scatter3DChart,
  CandlestickChart,
  ScatterChart,
  BarChart,
  HeatmapChart,
  UniversalTransition,
  Grid3DComponent,
  BrushComponent,
])

export default echarts
